import request from '@/utils/jsonReq'
export function getList(page,limit){
    return request({
        url:`/incomeList?_page=${page}&_limit=${limit}`,
        method:'get'
    })
}export function updateListItem(id,data){
    return request({
      url: `/incomeList/${id}`,
      method: 'put',
      data
    })
  }
  export function deleteListItem(id){
    return request({
      url: `/incomeList/${id}`,
      method: 'delete'
    })
  }
  export function addListItem(data){
    return request({
      url: `/incomeList`,
      method: 'post',
      data
    })
  }
  // 根据月份返回数据
  export function returnMonthIncome(data){
    return request({
      url: `/incomeList?_sort=time&_order=asc`,
      method: 'get',
      params:{
        q:data
      }
    })
  }
  // 根据类别返回数据
  
